<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script src="${RESOURCE}/scripts/security.js" type="text/javascript"></script><script language=JavaScript>
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}


function gotoIndex(){
   JavaScript:location.href='/bp3/bin/DpromptIndex';
}

</script> 
</head>

<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway">
    <a href="/bp3/bin/DpromptIndex" class="link2">Web service</a> > <a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> > OTP
    </div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->    
                <table width="100%" border="0">
                      <tr>
                        <td>
													<table width="650" border="0" cellspacing="0" cellpadding="0">

													  
  <tr> 
    <td height="30" valign="top"><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></td>
  </tr>
  <tr> 
    <td height="40" class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
        <tr> 
          <td class="textnormal">Hello! <span class="textnormal_blue"><strong>วิทยา อภิมหาบุณย์</strong></span> Welcome to Happy Web Services!</td>
          <td align="right"> <table height="30" border="0" align="right" cellpadding="0" cellspacing="0">

            <tr>
              <!--<td align="center" valign="middle"><a href="/bp3/bin/Dspc/DpromptWelcome?changeLang=T"><img src="${RESOURCE}/eng/images/en_flag.gif" width="30" height="16" border="0"></a></td>
              <td width="10" align="center"><img src="${RESOURCE}/eng/images/14_webservice_breaker.gif" width="3" height="27"></td>-->
              <td align="center"><a href="/bp3/bin/DpromptIndex"><img src="${RESOURCE}/eng/images/14_webservice_logoff.gif" width="108" height="29" border="0"></a></td>
            </tr>
          </table>            </td>
        </tr>
      </table></td>
  </tr>

  <tr> 
    <td height="1" bgcolor="#B4B4B4"></td>
  </tr>
  <tr> 
    <td class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
        <tr> 
          <td align="right" valign="top" class="textnormalred">This is the 47th time you've visited Happy.<br>
          The last time you logged in was on: 22/02/2011 at  11:09:44 <br>
          <span class="textnormal"><img src="${RESOURCE}/eng/images/bullet_yellow.gif" width="8" height="8"> <a href="/bp3/bin/Dspc/DpromptChangeUserInfoForm" class="textnormal_blue">Click to modify your personal information</a></span></td>

        </tr>
      </table></td>
  </tr>
													  <tr> 
													    <td> 
													      <table width="100%" border="0" cellspacing="3" cellpadding="0">
													        <tr> 
													          <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
													          <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle24.gif" width="350" height="22"></td>
													        </tr>

													        <tr> 
													          <td>&nbsp;</td>
													          <td class="textnormal">You can easily click and wait for password to 
													            be sent to your mobile phone. For more convenience, you can specify 
													            dtac 1800 mobile number to be sent password at <strong>personal information</strong> menu</td>
													        </tr>
													      </table>
													    </td>
													  </tr>

													  <tr> 
													    <td height="15" align="center"><br>
													    <br></td>
													  </tr>
													  <tr> 
													    <td height="15" align="left">
													      <form name="form" method="post" action="/bp3/bin/Dspc/GenPassPort">
													      <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2">
													        <br>
													          <span class="textnormal"></span> 
													          
													        <tr> 
													          <td width="50%" align="right" class="textnormal_bold">Your Happy Mobile Number:</td>

													          <td><input name="subrNumb" type="text" class="txt_search_c04" id="subrNumb" size="21" value="0868986464" maxlength="10" autocomplete="off" readonly></td>
													        </tr>
													        <tr> 
													          <td width="50%" height="5" align="right" class="textnormal_bold">&nbsp;</td>
													          <td height="5"><font color="#FF0000" class="textredsmall">Mobile phone number 10 digits (08xxxxxxxx)</font></td>
													        </tr>
													        <tr>
													          <td width="50%" align="right" class="textnormal_bold">Receiver's Mobile Number:</td>

													          <td height="50"><input name="sendOTPSubrNum" type="text" class="txt_search_c04" id="subrNumb2" size="21" value="0868986464" maxlength="10" autocomplete="off" readonly></td>
													        </tr>
													        <tr> 
													          <td width="50%" align="right" class="textnormal_bold">Click to get password:</td>
													          <td><a href="javascript:gen()"><img src="${RESOURCE}/eng/images/14_webservice_password_btn.gif" width="150" height="23" border="0"></a>
													            <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0">
															      <tr><td align="center" valign="middle"><div align="center" class="textnormalred"></div></td></tr>
													            </table>
													          </td>

													        </tr>
													        <tr> 
													          <td width="50%" align="right" class="textnormal_bold">&nbsp;</td>
													          <td height="25"><font color="#FF0000" class="textredsmall">(Wait for the password to be sent to your mobile. 
													You password will be valid for 30 minutes.)</font></td>
													        </tr>
													        <tr> 
													          <td width="50%" align="right" class="textnormal_bold">Enter your password <br>
													            to access the service: </td>

													          <td>
													            <label for="textfield"></label>
													            <input name="passwd" type="password" class="txt_search_c04" id="passwd" maxlength="4" size="21" autocomplete="off"></td>
													        </tr>
													      </table>
													      <p>&nbsp;</p>
													      <br>
														  <input name="func" type="hidden" id="func">
													      <font class="textgraynormal"> <input name="service" type="hidden" id="service" value="Itemised">	</font>

													<script language="JavaScript" type="text/JavaScript">
													function gen(){
													    document.form.func.value = "gen";
													    document.form.submit();
													}
													function check(){
													    if (document.form.passwd.value.length != 4) {
														alert('Password must have 4 digit and must be in numeric only.');
														document.form.passwd.focus();
														return;
													    }
													    if (!checkTextNumber(document.form.passwd.value)) {
														alert('Password must have 4 digit and must be in numeric only.');
														document.form.passwd.focus();
														return;
													    }
													    document.form.func.value = "check";
													    document.form.submit();
													}
													function gotoWelcome(){
														window.location = "/bp3/bin/Dspc/DpromptWelcome";
													}                                  
													</script>							  
													      <table width="250" border="0" align="center" cellpadding="5" cellspacing="0">
													        <tr align="center" valign="top"> 
													          <td><a href="javascript:check()"><img src="${RESOURCE}/eng/images/14_webservice_submit.gif" width="58" height="23"  border="0"></a></td>
													          <td><a href="JavaScript:gotoWelcome();"><img src="${RESOURCE}/eng/images/14_webservice_cancel.gif" width="58" height="23" border="0"></a></td>
													        </tr>        
													      </table> <p>&nbsp;</p>
													      </form>
													    </td>

													  </tr>
													  <tr>
													    <td>   				
													        <div class="textnormalred" align="center"> 		 </div>			 
													    </td>
													  </tr>
													  
  <tr> 
    <td height="15" align="left"><a href="/bp3/bin/Dspc/DpromptWelcome"><img src="${RESOURCE}/eng/images/14_webservice_main.gif" border="0"></a></td>
  </tr>
  <tr> 
    <td height="15" align="center"><br></td>

  </tr>
													</table>
												</td>
                      </tr>
                    </table>
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
